
#background {
    width: 400px;
    height: 400px;
    background-color: red;
}
#background2 {
    height: 179px;
    width: 281px;
    background-image: url(images/1.jpeg);
/*设置图片大小*/
    background-size: 100px 100px;
        /*background-size: 100% 100%;*/
        /*background-size: cover;*/
        /*background-size: contain;*/
/*设置背景图像的启示位置默认是 0% 0%   */
       /*background-position: center;*/
       /*background-position: left top;*/
       /* 左 left 上 top 中 center 右 right 下 bottom*/
       /*background-position: 10% 20%;*/
       /*background-position: 10% center;*/
/*图片平铺背景设置*/
       /*background-repeat: repeat*/
       /*background-repeat: no-repeat;*/
       /*background-repeat: repeat-x;*/
       /*background-repeat: repeat-y;*/
}